module ALU_1bit(A,B,Cin,Cout,result,ALUopbus);

input A, B, Cin;
input [2:0]ALUopbus;
output Cout, result;

wire logicand, logicor;

and and00(logicand, A, B);
or or00(logicor, A, B);

fulladder_1bit fulladder00(A,B,Cin,arithmeticresult,Cout);
Mux3to1_3bit mux00(logicand, logicor, arithmeticresult, result, ALUopbus);

endmodule



 
